package com.liaoyifan.core.properties;

import com.liaoyifan.core.constant.Properties;
import java.util.HashMap;
import java.util.Map;
import lombok.Data;
import org.springframework.boot.context.properties.ConfigurationProperties;

@SuppressWarnings("unused")
@Data
@ConfigurationProperties(prefix = Properties.LIAOYIFAN + Properties.NACOS)
public class NacosProperties {
    private String serverAddr;
    private String username;
    private String password;
    private String endpoint;
    private String namespace;
    private String logName;
    private String clusterName;
    private String group = "DEFAULT_GROUP";
    private String namingLoadCacheAtStart = "false";
    private Map<String, String> metadata = new HashMap<>();
    private String ip;
    private String networkInterface = "";
    private String ipType;
    private int port = -1;
    private boolean secure = false;
    private String accessKey;
    private String secretKey;
    private Integer heartBeatInterval;
    private Integer heartBeatTimeout;
    private Integer ipDeleteTimeout;
    private boolean instanceEnabled = true;
    private boolean ephemeral = true;
    private boolean failureToleranceEnabled;
    private boolean failFast = true;
    private Integer gracefulShutdownWaitTime = 10000;
}
